
#include <sstream>
#include <string>
#include <thread>

#include <muduo/base/Logging.h>
#include <json.hpp>

#include "CommonFunction.h"
#include "Server.h"

int main() {
    std::thread::id this_id = std::this_thread::get_id();
    std::stringstream strStream;
    strStream << this_id;
    LOG_INFO << "Main thread:" << strStream.str();
    LOG_INFO << commonfunction::CreateUUID();

    muduo::net::EventLoop loop;
    muduo::net::InetAddress listenAddr(9999);
    CServer server(&loop, listenAddr);
    server.Start();
    loop.loop();
    return 0;
}